package com.firefighting.dao;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.firefighting.entity.Proprietor;

public interface ProprietorMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Proprietor record);

    int insertSelective(Proprietor record);

    Proprietor selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Proprietor record);

    int updateByPrimaryKey(Proprietor record);
  //Liuxc 根据ID列表查询业主
  	List<Proprietor> selectProprietorByIdList(List<Integer> proprietorIdList);
    /*zhyan 查询所有的业主*/
    @SuppressWarnings("rawtypes")
	List<HashMap> selectAllProprietor();
    //查询企业的业主
	@SuppressWarnings("rawtypes")
	List<HashMap> selectProprietorByEnter(Integer enterpriseId);
    /** zhyan */
    int selectIdWithNameAndAddress(@Param("name") String name, @Param("address") String address);
    Proprietor selectByNameAndAddress(@Param("name") String name, @Param("address") String address);
    
    /** zhyan 根据项目负责人进行查询 */
    @SuppressWarnings("rawtypes")
	List<HashMap> selectProprietorByLoginId(@Param("account") String account);
    
    /** zhyan 根据企业id列表查询业主 */
    @SuppressWarnings("rawtypes")
	List<HashMap> selectProprietorByEnterterpriseIdList(@Param("list") List<Integer> list);
}